package model

import "go.mongodb.org/mongo-driver/bson/primitive"

//石墨化1
type QualityRequired struct { //用户质量要求
	Id                   primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Batch_Number         string             `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Type                 string             `bson:"type" binding:"required" form:"type" json:"type"`
	Norms_Type           string             `bson:"norms_type"  form:"norms_type" json:"norms_type"`
	Amount               int                `bson:"amount" json:"amount" binding:"required" form:"amount"`
	Pass_Rate            float32            `bson:"pass_rate" json:"pass_rate" form:"pass_rate"`
	Incoming_Resistivity float32            `bson:"incoming_resistivity" json:"incoming_resistivity" form:"incoming_resistivity"`
	Infact_Resistivity   float32            `bson:"infact_resistivity" json:"infact_resistivity" form:"infact_resistivity"`
	Ask_Resistivity      float32            `bson:"ask_resistivity" json:"ask_resistivity" form:"ask_resistivity"`
	Principal            string             `bson:"principal" binding:"required" form:"principal" json:"principal"`
	Creator              string             `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt            string             `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe             string             `bson:"describe" json:"describe" form:"describe"`    //描述
}

//装炉报告
type LoadOven struct {
	Id                 primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Heat_Number        string             `bson:"heat_number" form:"heat_number" json:"heat_number"`
	Batch_Number       string             `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Type               string             `bson:"type" binding:"required" form:"type" json:"type"`
	Norms_Type         string             `bson:"norms_type"  form:"norms_type" json:"norms_type"`
	Amount             int                `bson:"amount" json:"amount" binding:"required" form:"amount"`
	Length             int                `bson:"length" json:"length" form:"length"`
	One_Weight         float32            `bson:"one_weight" json:"one_weight" form:"one_weight"`
	Total_Weight       float32            `bson:"total_weight" json:"total_weight" form:"total_weight"`
	Quality_Goods      float32            `bson:"quality_goods" json:"quality_goods" form:"quality_goods"`
	Waste              float32            `bson:"waste" json:"waste" form:"waste"`
	Dispensing_Product float32            `bson:"dispensing_product" json:"dispensing_product" form:"dispensing_product"`
	//IQC string `bson:"iqc" binding:"required" form:"iqc" json:"iqc"`
	//Curator string `bson:"curator" binding:"required" form:"curator" json:"curator"`
	Principal string `bson:"principal" binding:"required" form:"principal" json:"principal"`
	//Stipulate_Time string `bson:"stipulate_time" binding:"required" form:"stipulate_time" json:"stipulate_time"` //前端规定时间
	Desc      string `bson:"desc" form:"desc" json:"desc"`
	Creator   string `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt string `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe  string `bson:"describe" json:"describe" form:"describe"`    //描述
	Unique    string `json:"unique" bson:"unique" form:"unique"`
}

//送电曲线
type ElectricityCurve struct {
	Id     primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Target [24]struct {
		Target_Time    string  `bson:"target_time" form:"target_time" json:"target_time"` //前端规定时间
		Target_Degrees float32 `bson:"target_degrees" json:"target_degrees" form:"target_degrees"`
	} `bson:"target" json:"target" form:"target"`
	Batch_Number         string  `bson:"batch_number" binding:"required" json:"batch_number" form:"batch_number"`
	Type                 string  `bson:"type" binding:"required" form:"type" json:"type"`
	Norms_Type           string  `bson:"norms_type" binding:"required" form:"norms_type" json:"norms_type"`
	Start_Power          float32 `bson:"start_power" json:"start_power" form:"start_power"`
	DC_Voltage1          float32 `bson:"dc_voltage1" json:"dc_voltage1" form:"dc_voltage1"`
	Initial_Heat_Value   float32 `bson:"initial_heat_value" json:"initial_heat_value" form:"initial_heat_value"`
	End_Power            float32 `bson:"end_power" json:"end_power" form:"end_power"`
	DC_Voltage2          float32 `bson:"dc_voltage2" json:"dc_voltage2" form:"dc_voltage2"`
	Shut_Down_Resistance float32 `bson:"shut_down_resistance" json:"shut_down_resistance" form:"shut_down_resistance"`
	Planned_Capacity     float32 `bson:"planned_capacity" json:"planned_capacity" form:"planned_capacity"`
	Actual_Power         float32 `bson:"actual_power" json:"actual_power" form:"actual_power"`
	Ton_Consumption      float32 `bson:"ton_consumption" json:"ton_consumption" form:"ton_consumption"`
	Principal            string  `bson:"principal" form:"principal" json:"principal"`
	Creator              string  `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt            string  `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe             string  `bson:"describe" json:"describe" form:"describe"`    //描述
	Unique               string  `json:"unique" bson:"unique" form:"unique"`
}
